package com.argticling.model.preferences;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.argticling.model.Persistable;
import com.argticling.model.Persistent;

import java.io.Serializable;

@Entity
@Table(name="USER_PREFERENCE_RELATION")
public class UserPreferenceRelation implements Serializable, Persistable {   
    private String preferenceID;
    private String userId;
    private String articleId;
    private String id;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Id
    @Column(name= "PREFERENCE_ID")
    public String getPreferenceID() {
        return preferenceID;
    }

    public void setPreferenceID(String preferenceID) {
        this.preferenceID = preferenceID;
    }

    @Column(name= "USER_ID")
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Column(name= "ARTICLE_ID")
    public String getArticleId() {
        return articleId;
    }

    public void setArticleId(String articleId) {
        this.articleId = articleId;
    }
}
